package ucm;

import java.sql.SQLException;
import model.Flight;

/**
 * UCSearchFlight
 *
 * Goal: Search Flights
 * Primary Actor: User
 * Precondition: Connected to database. User is logged in.
 * Postcondtion: Search results are displayed
 * 
 * @author Tobias Robinson
 */

public class UCSearchFlight {

    public UCSearchFlight() throws SQLException {
        run();
    }
    
    /**
     * 1. Actor selects Search Flights.
     * 2. The system requests the actor to enter flight info.
     * 4. System verifies user input.
     * 5. System retrieves flight info.
     * 6. System displays flight to user.
     */
    public void run() throws SQLException {
        Flight.loadSearchFlightView();
    }

}
